<template>
    <el-menu :default-openeds="sysStore.getDefaultOpenMenu" class="el-menu-vertical-demo">
        <menu-itrator v-for="permission in useUserStore().getPermissionMenuTree || []" :permission="permission"></menu-itrator>
    </el-menu>
</template>

<script setup lang='ts'>
import { useSysStore } from '@/pinna/sys';
import { useUserStore } from '@/pinna/userinfo'
const sysStore = useSysStore()
</script>

<style></style>